# _*_coding:utf-8 _*_
#@Time    :2019/8/2 13:53
#@Author  :Dapan
#@Email : 248312738@qq.com
import requests

# GET http://v3-dy-y.ixigua.com/caadb52de7f56576b88791db7a2e43e2/5d43dc26/video/m/2209cb17415c7da45328e3ff1713749da4711631546b00001c3a7667a42e/?rc=ajU4PHZubjRxbzMzNWkzM0ApdSk6OzY6OTM1MzM3NzQzMzQ1bzVmaGU4Mzo4OGg7ZGhlaTVAaUBoNHYpQGczdilAZjs0QDNfbGw1aGBtLl8tLV4tMHNzOmkxLi4vLS4zLS41MjAvNTYtOiM2X2AvNDE1NS0xLzMwMDJgYSNvIzphLW8jOmAtbyMvLl4%3D HTTP/1.1
# Host: v3-dy-y.ixigua.com
# Connection: keep-alive
# sdk-version: 1
# x-Tt-Token: 00e0caaa34a584fdf96eec95846e916e8111f83b2bfa88fb9c4a838abfbfa38b12c8bd9f099a753e651d9b083d7d2d979943
# User-Agent: Aweme 6.0.0 rv:60013 (iPhone; iPhone OS 9.3.2; zh_CN) Cronet
# Accept-Encoding: gzip, deflate
# X-Khronos: 1564724748
# X-Pods:
# X-Gorgon: 839f7f2b00008a83e2f030717b0208c2b166f77ab90097c1aa6e
# Range: bytes=0-

url = 'http://v3-dy-y.ixigua.com/caadb52de7f56576b88791db7a2e43e2/5d43dc26/video/m/2209cb17415c7da45328e3ff1713749da4711631546b00001c3a7667a42e/?rc=ajU4PHZubjRxbzMzNWkzM0ApdSk6OzY6OTM1MzM3NzQzMzQ1bzVmaGU4Mzo4OGg7ZGhlaTVAaUBoNHYpQGczdilAZjs0QDNfbGw1aGBtLl8tLV4tMHNzOmkxLi4vLS4zLS41MjAvNTYtOiM2X2AvNDE1NS0xLzMwMDJgYSNvIzphLW8jOmAtbyMvLl4%3D'
headers = {
    'User-Agent': 'Aweme 6.0.0 rv:60013 (iPhone; iPhone OS 9.3.2; zh_CN) Cronet'
}
res = requests.get(url=url, headers=headers)

with open("a.mp4", "wb") as f:
    f.write(res.content)



# print(res.text)

